﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.graphics {
    import flash.display.*;
    import org.aswing.*;

    public class Pen implements IPen {

        private var _thickness:Number;
        private var _color:ASColor;
        private var _pixelHinting:Boolean;
        private var _scaleMode:String;
        private var _caps:String;
        private var _joints:String;
        private var _miterLimit:Number;

        public function Pen(_arg1:ASColor, _arg2:Number=1, _arg3:Boolean=false, _arg4:String="normal", _arg5:String=null, _arg6:String=null, _arg7:Number=3){
            this._color = _arg1;
            this._thickness = _arg2;
            this._pixelHinting = _arg3;
            this._scaleMode = _arg4;
            this._caps = _arg5;
            this._joints = _arg6;
            this._miterLimit = _arg7;
        }
        public function getColor():ASColor{
            return (this._color);
        }
        public function setColor(_arg1:ASColor):void{
            this._color = _arg1;
        }
        public function getThickness():Number{
            return (this._thickness);
        }
        public function setThickness(_arg1:Number):void{
            this._thickness = _arg1;
        }
        public function getPixelHinting():Boolean{
            return (this._pixelHinting);
        }
        public function setPixelHinting(_arg1:Boolean):void{
            this._pixelHinting = _arg1;
        }
        public function getScaleMode():String{
            return (this._scaleMode);
        }
        public function setScaleMode(_arg1:String="normal"):void{
            this._scaleMode = _arg1;
        }
        public function getCaps():String{
            return (this._caps);
        }
        public function setCaps(_arg1:String):void{
            this._caps = _arg1;
        }
        public function getJoints():String{
            return (this._joints);
        }
        public function setJoints(_arg1:String):void{
            this._joints = _arg1;
        }
        public function getMiterLimit():Number{
            return (this._miterLimit);
        }
        public function setMiterLimit(_arg1:Number):void{
            this._miterLimit = _arg1;
        }
        public function setTo(_arg1:Graphics):void{
            _arg1.lineStyle(this._thickness, this._color.getRGB(), this._color.getAlpha(), this._pixelHinting, this._scaleMode, this._caps, this._joints, this._miterLimit);
        }

    }
}//package org.aswing.graphics 
